﻿@model Stardust.Models.EmpleadoBean

@{
    ViewBag.Title = "Modificar empleado";
}

<h2>Modificar empleado</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm("Edit", "Empleado", FormMethod.Post, new { @class = "form" } ))
{
    @Html.ValidationSummary(true)
    <fieldset>
        <div class = "widget" >
            <div class = "title" ><h6> Editar empleado </h6></div>

            @*<div class = "formRow" >
                @Html.LabelFor( model => model.nombreEmpleado )
                <div class = "formRight" > @Html.DropDownListFor( model => model.nombreEmpleado , new SelectList( ViewBag.empleados , "ID" , "nombres" ) , "Elija un usuario... " ) </div>
                <div class = "clear" ></div>
            </div>*@

            <div class = "formRow" >
                @Html.LabelFor( model => model.nombreEmpleado )
                <div class = "formRight" > @Html.DisplayFor( model => model.nombreEmpleado ) </div>
                <div class = "clear" ></div>
            </div>

            <div class = "formRow" >
                @Html.LabelFor( model => model.fechaIngreso )
                <div class = "formRight" > @Html.DisplayFor( model => model.fechaIngreso ) </div>
                <div class = "clear" ></div>
            </div>

            <div class = "formRow" >
                @Html.LabelFor( model => model.estado )
                <div class = "formRight" > @Html.DropDownListFor( model => model.estado , new SelectList( ViewBag.estados , "nombre" , "nombre" , Model.estado ) ) </div>
                <div class = "clear" ></div>
            </div>
        </div>
        <p>
            <input class = "redB" type="submit" value="Guardar" />
        </p>
    </fieldset>
}


<div>
    @Html.ActionLink("Regresar", "List")
</div>
